-- GENERATED SPELL FOR [Naxxramas Follower] --


function spell0_16505(pUnit, Event) --@Berserker Charge,n/a--
pUnit:FullCastSpellOnTarget(56107,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16505', 555, 1)
end

function spell1_16505(pUnit, Event) --@Silence,Self--
pUnit:FullCastSpellOnTarget(54093,pUnit)
pUnit:RegisterEvent('Sorts_16505', 6322, 1)
end

function Sorts_16505(pUnit, Event)
local choix_sorts_16505 = math.random(0, 1)
if choix_sorts_16505 == 0 then
pUnit:RegisterEvent('spell0_16505', 1, 1)
end
if choix_sorts_16505 == 1 then
pUnit:RegisterEvent('spell1_16505', 1, 1)
end
end

function mob16505_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16505', math.random(1500, 3000), 1)
end

function mob16505_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16505_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16505_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16505, 1, 'mob16505_Action')
RegisterUnitEvent(16505, 2, 'mob16505_Leave')
RegisterUnitEvent(16505, 3, 'mob16505_Kill')
RegisterUnitEvent(16505, 4, 'mob16505_Die')
